// 后端返回的字典数据接口(比如省市区等等)
import request from '@/utils/request'

//手工充值增加
export function addRechargeCoinForm(data) {
  return request({
    url: '/order/recharge_coin/add_item',
    method: 'post',
    data,
  })
}
//手工充值列表
export function queryRechargeCoin(data) {
  return request({
    url: '/order/recharge_coin/query_list',
    method: 'post',
    data,
  })
}
export function queryCrowdPush(data) {
  return request({
    url: '/user/crowd_push/query_list',
    method: 'post',
    data,
  })
}
//消费推送
export function addCrowdPush(data) {
  return request({
    url: '/user/crowd_push/add_item',
    method: 'post',
    data,
  })
}
//消费推送
export function editCrowdPush(data) {
  return request({
    url: '/user/crowd_push/edit_item',
    method: 'post',
    data,
  })
}
//人群列表
export function queryCrowdUserChil(data) {
  return request({
    url: '/user/crowd_user/query_list',
    method: 'post',
    data,
  })
}
//用户分群搜索接口
export function queryCrowdRule(data) {
  return request({
    url: '/user/crowd_rule/query_list',
    method: 'post',
    data,
  })
}
//用户分群添加接口
export function addCrowdRuleForm(data) {
  return request({
    url: '/user/crowd_rule/add_item',
    method: 'post',
    data,
  })
}
//用户分群添加接口
export function editCrowdRuleForm(data) {
  return request({
    url: '/user/crowd_rule/edit_item',
    method: 'post',
    data,
  })
}
// 充值订单搜索接口
export function getRechargeList(data) {
  return request({
    url: '/order/recharge/query_list',
    method: 'post',
    data,
  })
}
// 解锁订单搜索接口
export function getUnlockList(data) {
  return request({
    url: '/order/unlock/query_list',
    method: 'post',
    data,
  })
}

//黑名单搜索接口
export function queryBlackList(data) {
  return request({
    url: '/blacklist/country/query_list',
    method: 'post',
    data,
  })
}
//黑名单新增接口
export function addBlackform(data) {
  return request({
    url: '/blacklist/country/add_item',
    method: 'post',
    data,
  })
}
//黑名单删除接口
export function delBlackform(id) {
  return request({
    url: '/blacklist/country/del_item',
    method: 'post',
    data: {
      id,
    },
  })
}

//用户付费率搜索接口
export function queryUserPayList(data) {
  return request({
    url: '/user/user_pay/query_list',
    method: 'post',
    data,
  })
}

//版本管理搜索接口
export function queryApkList(data) {
  return request({
    url: '/app/apk/query_list',
    method: 'post',
    data,
  })
}

//版本管理添加包接口
export function addApkPkg(data) {
  return request({
    url: '/app/apk/add_item',
    method: 'post',
    data,
  })
}

//版本管理删除包接口
export function delApkForm(data) {
  return request({
    url: '/app/apk/del_item',
    method: 'post',
    data,
  })
}

//用户地区分布搜索接口
export function queryUserRedion(data) {
  return request({
    url: '/user/user_region/query_list',
    method: 'post',
    data,
  })
}

//arppu搜索接口
export function queryArppuList(data) {
  return request({
    url: '/user/arppu/query_list',
    method: 'post',
    data,
  })
}
